package com.salt.admin.api.feign.client;

import com.salt.admin.api.feign.hystrix.SystemRoleClientHystrix;
import com.salt.common.constant.Common;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

/**
 * @Description
 * @Author salt
 * @Date 2022/4/19
 * @Version 1.0.1
 */
@FeignClient(name = Common.Service.SALT_ADMIN_SERVICE_NAME,
        path = Common.Service.SALT_SYSTEM_ROLE_URL_PREFIX,
        fallbackFactory = SystemRoleClientHystrix.class)
public interface SystemRoleClient {

    @PostMapping("selectUserIds")
    public Set<String> selectUserIds(@RequestParam("roleIds") Set<String> roleIds);
}
